package com.longteng.diamond.domain;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by Administrator
 * DATE : 2018/6/4
 * TIME : 23:14
 * PROJECT : java-lesson
 * PACKAGE : com.longteng.lesson
 *
 * @author <a href="mailto:taki@qq.com">Administrator</a>
 */
@Data
public class InterfaceTest extends BaseEntity{
    /**
     * 接口id
     */
    private Integer interfaceId;
    /**
     * 接口别名
     */
    @NotEmpty(message = "接口别名不能为空")
    @NotNull(message = "接口别名不能为空")
    private String interfaceAliasName;
    /**
     * 接口url或者dubbo类型的接口名
     */
    @NotNull(message = "接口名称不能为空")
    @NotEmpty(message = "接口名称不能为空")
    private String interfaceName;
    /**
     * 方法
     */
    private String interfaceMethod;
    /**
     * 描述
     */
    private String interfaceDesc;
    /**
     * 接口类型
     */
    private String interfaceType;
    /**
     * 消息头
     */
    private String headers;
    /**
     * host
     */
    private Integer hostId;
    /**
     * 用例列表
     */
    private List<TestCase> testCaseList;
}
